<!DOCTYPE html>
<html>
<head>
	<include file="Public:common-css" />
	<link type="text/css" rel="stylesheet" href="__ICSS__/list.css" />
</head>
<body>
<div class="container">
<!-------------------------header--------------------------------->
<include file="Public:header" />
<!--------------------------content------------------------------->
	<div class="clr"></div>
    <div class="content">
    	<div class="list-type">
    		<dl>
    			<dt>类别：</dt>
    			<dd>
    				<ul>
    					<li><a href="__ROOT__/Product/index" <empty name="data.typeId">class="on"</empty>>全部</a></li>
    					<foreach item="type" name="type">
    						<li><a href="__ROOT__/Product/index?typeId=<{$type.id}>" <if condition="$data.typeId eq $type['id']">class="on"</if>><{$type.typeName}></a></li>
    					</foreach>
    				</ul>
    			</dd>
    		</dl>
    		<notempty name="data.typeId">
    		<dl>
    			<dt>小类：</dt>
    			<dd>
    				<ul>
    					<li><a href="__ROOT__/Product/index?typeId=<{$data.typeId}>" <empty name="data.subTypeCode">class="on"</empty>>全部 </a></li>
    					<foreach item="subType" name="subType">
    						<li><a href="__ROOT__/Product/index?typeId=<{$data.typeId}>&subTypeCode=<{$subType.subtype_code}>" <if condition="$data.subTypeCode eq $subType['subtype_code']">class="on"</if>><{$subType.subtype_name}></a></li>
    					</foreach>
    				</ul>
    			</dd>
    		</dl>
    		</notempty>
    	</div>
    	<div class="clr"></div>
    	<div class="list-nav">
    		<ul>
    			<li><a href="__ROOT__/Product/index?sort=seq-asc<notempty name='data.typeId'>&typeId=<{$data.typeId}></notempty><notempty name='data.subTypeCode'>&subTypeCode=<{$data.subTypeCode}></notempty><notempty name='data.name'>&name=<{$data.name}></notempty>" <if condition="$data.sort eq 'seq-asc' || empty($data['sort'])">class="on"</if>>综合排序</a></li>
    			<li><a href="__ROOT__/Product/index?sort=sell_num-desc<notempty name='data.typeId'>&typeId=<{$data.typeId}></notempty><notempty name='data.subTypeCode'>&subTypeCode=<{$data.subTypeCode}></notempty><notempty name='data.name'>&name=<{$data.name}></notempty>" <if condition="$data.sort eq 'sell_num-desc'">class="on"</if>>销量最好</a></li>
    			<li><a href="__ROOT__/Product/index?sort=price-asc<notempty name='data.typeId'>&typeId=<{$data.typeId}></notempty><notempty name='data.subTypeCode'>&subTypeCode=<{$data.subTypeCode}></notempty><notempty name='data.name'>&name=<{$data.name}></notempty>" <if condition="$data.sort eq 'price-asc'">class="on"</if>>价格最低</a></li>
    			<li><a href="__ROOT__/Product/index?sort=price-desc<notempty name='data.typeId'>&typeId=<{$data.typeId}></notempty><notempty name='data.subTypeCode'>&subTypeCode=<{$data.subTypeCode}></notempty><notempty name='data.name'>&name=<{$data.name}></notempty>" <if condition="$data.sort eq 'price-desc'">class="on"</if>>价格最高</a></li>
    		</ul>
    		<div class="list-nav-page">
    			<span>共<{$count}>件商品</span>
     		</div>
    	</div>
    	<div class="clr"></div>
        <div class="list-box">
        	<div class="product-content">
        		<foreach item="list" name="list">
        		<div class="m-floor-content-item">
					<div class="m-floor-content-photo">
                    	<a href="__ROOT__/Product/details?productId=<{$list.id}>"><img width="220" height="220" src="__IMGROOT__<{$list.photo}>" /></a>
                    </div>
                    <div class="m-floor-content-title"><a href="__ROOT__/Product/details?productId=<{$list.id}>" title="<{$list.name}><{$list.spec}>"><{$list.name}><{$list.spec}></a></div>
                    <div class="m-floor-content-buy">
                     	<font style="display:none;">0</font>
                     	<div class="m-floor-content-price msyh red">￥<font><{$list.price}></font></div>
                        <div class="m-floor-content-join-cart"><input type="hidden" value="<{$list.id}>" class="product-id"/><a class="addToCart" href="javascript:void(0)"></a></div>
                    </div>
            	</div>
            	</foreach>
            	<empty name="list"><p class="no-more-box"><img src="__IIMG__/no-order.png" width="80"/><span>没有搜索到商品</span></p></empty>
        	</div>
        	<div class="page">
            	<ul>
            		<{$page}>
                </ul>
            </div>
        </div>
    </div>
    <div class="clr"></div>
    <div class="f-ad"></div>
    <div class="clr"></div>
<!--------------------------content-end--------------------------->
    <include file="Public:footer" />
</div>

</body>
<include file="Public:common-js" />
<script type="text/javascript">
$(function() {
	
})
</script>

</html>
